package com.guigu.qingcheng.service;

import com.guigu.qingcheng.pojo.bussiness.TbAd;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 调用远程接口Ad
 */

@Component
@FeignClient("service-business")
public interface AdServiceFeign {

    @GetMapping("/servicebusiness/tb-ad/findByPosition")
    public List<TbAd> findByPosition(@RequestParam("position") String position);

}
